<?php

namespace Apps\Frontend\Models;
use Phalcon\Mvc\Model;
class Article extends Model{
    public $id=0;
    public $name=0;
    public $alias=0;
    public $picture=0;
    public $keyword=0;
    public $description=null;
    public $tag=0;
    public $category_id=0;
    public $total_rate=0;
    public $time_rate=0;
    public $content=null;
    public $status;
    public $created=0;
    public $created_by =0;
    public $modified=0;
    public $modified_by=0;
    public $type=0;
    public $view=0;

    public function initialize(){
        $this->setSource("ph_vegalife_article");
        $this->belongsTo('created_by', 'Apps\Frontend\Models\Users', 'id', array(
            'alias' => 'create',
            'reusable' => true
        ));


    }
}
